# -*- coding: utf-8 -*-

"""
* Copyright (C) 2016 GridSafe, Inc.
"""

from django.contrib.auth.models import User
from django.db import models

from apps.wallet.models.profile import Profile


class Follow(models.Model):
    """关注"""
    user = models.ForeignKey(User)
    add_date = models.DateTimeField(auto_now=True)

    class Meta:
        db_table = 'follow'

    @property
    def user_profile(self):
        return Profile.objects.filter(user=self.user)


class Follower(Follow):
    """关注"""
    pass
